# -*- coding:utf-8 -*-
from . import db


class MapDataCompany(db.Model):
    """
    MapData 与 Company 关系表 ORM实体类
    """
    __tablename__ = "map_data_company"

    id = db.Column(db.String(36), primary_key=True)
    key_no = db.Column(db.String(36), primary_key=True)
    matched = db.Column(db.Boolean, nullable=False, default=False)

    def __repr__(self):
        return "MapData: { id: %s , key_no: %s }" % (self.id, self.key_no)
